package com.example.demo.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author lzz
 * @package com.example.demo.client
 * @create 2019-05-20 15:48
 * @description: ${DESCRIPTION}
 */
@FeignClient("SERVICE-CLIENT2")//eureka上的注册名(如果是SERVICE-CLIENT访问SERVICE-CLIENT2则改为SERVICE-CLIENT)大小写不是配置文件中的
public interface ServiceClient {

    @RequestMapping("/hello")
    public String hello();

}
